<?php echo $this->Form->create("BankAccount", array('class' => 'validacion', 'enctype' => 'multipart/form-data', 'type' => 'file', "action" => "editProperties/" . $this->data['BankAccount']['id'] . "/" . $expense_property_id)); ?>
<?php echo $this->Form->input('BankAccount.id'); ?>
<?php echo $this->Form->hidden('BankAccount.proyect_id'); ?>
<?php echo $this->Form->hidden('BankAccount.tipo_titular', array('value' => 'Propietario')); ?>
<?php echo $this->Form->input('BankAccount.nombre_banco', array('label' => 'Nombre banco', 'class' => 'required')); ?>
<?php echo $this->Form->input('BankAccount.numero_cuenta', array('label' => 'Número de cuenta', 'class' => 'required')); ?>
<?php echo $this->Form->input('BankAccount.sucursal', array('label' => 'Sucursal', 'class' => 'required')); ?>
<?php echo $this->Form->input('BankAccount.tipo_cuenta', array('label' => 'tipo_cuenta', 'class' => '', 'empty' => '', 'options' => array('Ahorros' => 'Ahorros', 'Corriente' => 'Corriente'))); ?>
<?php echo $this->Form->input('BankAccount.nombre_titular', array('label' => 'Nombre del titular', 'class' => 'required')); ?>
<?php echo $this->Form->input('BankAccount.documento_titular', array('label' => 'Documento del titular', 'class' => 'required')); ?>
<?php echo $this->Form->input('BankAccount.valor', array('label' => 'Valor a desembolsar', 'class' => 'required')); ?>
<legend>Adjuntar certificación</legend>
<?php echo $this->Form->file('BankAccount.archivo', array('label' => 'Archivo adjunto', 'accept' => 'pdf')); ?>
<?php echo $this->Form->end("Guardar") ?>
<br><br>
<?php echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'bank_accounts', 'action' => 'indexProperties', $expense_property_id), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading', 'escape' => false)); ?>